from base.mybase import Tools
import requests

class info_model(Tools):
    # 定义路径
    path = '/task/info'

    # 发送注册请求
    def info_action(self, title,hd):
        mydata = {'title': title}
        res = self.huihua.post(url=self.hosturl + self.path, data=mydata,headers=hd)
        return res.json()
